When you export rollovers from Fireworks, you export a number of images for the various rollover states as well as an HTML file containing JavaScript code.
For more information on exporting, see Chapter 12, "Exporting."
JavaScript and browser compatibility
The JavaScript code exported with a rollover is used to display the rollover in a Web browser.
The JavaScript exported from Fireworks includes browser detection, and is compatible with versions 3 or higher of both Netscape Navigator and Microsoft Internet Explorer. Some browsers, such as Internet Explorer 3, cannot display all four JavaScript rollover states. In that case, the JavaScript exported by Fireworks allows those browsers to display the Up state and link to the appropriate URL.
The JavaScript generated by Fireworks performs preloading of rollover states, sometimes called "pre-caching." This means that when the HTML file is first loaded into the Web browser, all rollover images, even those not initially visible, are loaded into the browser's memory. When the pointer is moved over a Fireworks JavaScript rollover, the alternative state is immediately swapped, instead of waiting for it to be downloaded from the server.
Pre-caching does not occur when the rollover is an external file to prevent animated GIFs from being interrupted when they are used as rollover states.
Customizing HTML and JavaScript exported by Fireworks
The style of HTML and JavaScript created by Fireworks is determined by HTML template file that you can edit. For more information on customizing Fireworks HTML, see Editing Fireworks HTML output styles.